!function(v,y,T){var S=v.location,k="script",D="instrumentationKey",C="ingestionendpoint",I="disableExceptionTracking",E="ai.device.",b="toLowerCase",w=(D[b](),"crossOrigin"),N="POST",e="appInsightsSDK",t=T.name||"appInsights",n=((T.name||v[e])&&(v[e]=t),v[t]||function(l){var u=!1,d=!1,g={initialize:!0,queue:[],sv:"6",version:2,config:l};function m(e,t){var n={ },a="Browser";return n[E+"id"]=a[b](),n[E+"type"]=a,n["ai.operation.name"]=S&&S.pathname||"_unknown_",n["ai.internal.sdkVersion"]="javascript:snippet_"+(g.sv||g.version),{time:(a=new Date).getUTCFullYear()+"-"+i(1+a.getUTCMonth())+"-"+i(a.getUTCDate())+"T"+i(a.getUTCHours())+":"+i(a.getUTCMinutes())+":"+i(a.getUTCSeconds())+"."+(a.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z",iKey:e,name:"Microsoft.ApplicationInsights."+e.replace(/-/g,"")+"."+t,sampleRate:100,tags:n,data:{baseData:{ver:2}}};function i(e){e = "" + e;return 1===e.length?"0"+e:e}}var e,n,f=l.url||T.src;function a(e){var t,n,a,i,o,s,r,c,p;u=!0,g.queue=[],d||(d=!0,i=f,r=(c=function(){var e,t={ },n=l.connectionString;if(n)for(var a=n.split(";"),i=0;i ex.parsedStack?.some(frame => { const file = frame.fileName || ''; return include.test(file) && !exclude.test(file); }) ); } sdk.addTelemetryInitializer(function (envelope) { envelope.data = envelope.data || {}; envelope.data.TenantId = window.AsiAppInsights.tenantID; if (envelope.baseType === 'ExceptionData') { if (!isOutOfTheBoxJSFile(envelope.baseData)) { let fileName; try { const urlObj = new URL(envelope.data.url), segs = urlObj.pathname.split('/'); fileName = segs[segs.length - 1]; if (!fileName.endsWith(".js")) { fileName = "inline"; } } catch (e) { fileName = url; } appInsights.trackMetric({ name: "JavaScriptExceptions", average: 1 }, { SourceFile: fileName, TenantId: window.AsiAppInsights.tenantID }); return false; } } return true; }); }, cfg: { // Application Insights Configuration connectionString: window.AsiAppInsights.connectionstring, autoTrackPageVisitTime:true, enableRequestHeaderTracking: true, disableCookiesUsage: true }});